package com.eonmind.common.provider.entity.vip;

import com.eonmind.common.contract.enums.DelEnum;
import com.mongoplus.annotation.ID;
import com.mongoplus.annotation.collection.CollectionName;
import com.mongoplus.enums.IdTypeEnum;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.experimental.FieldNameConstants;

/**
 * 积分消费记录
 */
@Data
@CollectionName("pointsConsumption")
@FieldNameConstants
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
public class PointsConsumption {
    /**
     * 积分消费ID
     */
    @ID(type = IdTypeEnum.AUTO)
    private Long id;
    /**
     * 用户ID
     */
    private Long userID;
    /**
     * 消费类型
     */
    private Integer type;
    /**
     * 消费 or 收入
     */
    private String category;
    /**
     * 消费额度
     */
    private Integer consumption;
    /**
     * 消费描述
     */
    private String description;
    /**
     * 创建时间
     */
    private Long createTime;
    /**
     * 更新时间
     */
    private Long updateTime;
    /**
     * 是否删除
     */
    private Integer del = DelEnum.UN_DEL.getCode();
    /**
     * 积分余额
     */
    private Integer balance;
    /**
     * 模型名称
     */
    private String modelName;
}
